﻿<Window x:Class="InterfaceHommeMachine.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Civil INSA tion : Les départements en guerre !" Height="600" Width="800" ResizeMode="CanResize" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen" Icon="/InterfaceHommeMachine;component/Images/chateau.png" Background="LightSalmon" Closed="Cross_Click" FontStyle="Normal" FontWeight="Normal" MinHeight="600" MinWidth="800" KeyDown="Window_KeyUp">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="0.8*"/>
            <RowDefinition Height="8*"/>
            <RowDefinition Height="4*"/>
        </Grid.RowDefinitions>
        <Grid   Name="gripLabelTop" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2*" />
                <ColumnDefinition Width="2*" />
                <ColumnDefinition Width="1*" />
            </Grid.ColumnDefinitions>
            
            <Label Content="Info sur le tour du joueur"  HorizontalAlignment="Center" Name="labelTour" VerticalAlignment="Center"  FontWeight="Bold" FontSize="12" FontStyle="Italic" Grid.Column ="1" Margin="0" />
            <Button Content="Sauver la partie" Grid.Column="3" Height="23" HorizontalAlignment="Right" Margin="5,0,10,0" Name="button1" VerticalAlignment="Center" Width="106" Click="buttonSauvegarder_Click" />
            <Label Content="" Grid.Column ="0" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" HorizontalAlignment="Stretch" Margin="5,0" Name="InfoCivi" VerticalAlignment="Stretch" />
        </Grid>
        
        <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" HorizontalAlignment="Center" Name="scrollViewer1" VerticalAlignment="Center" Margin="0,0,0,0" Grid.Row="1">
            <Canvas Name="canvas1"  Background="Black">
                <Grid Canvas.Left="0" Canvas.Top="0"  Name="gridMap" >
              
                </Grid>
                <Grid Canvas.Left="0" Canvas.Top="0"  Name="gridVille"  >
                    <Rectangle  Height="50" Name="rectangleSelection" Stroke="Black" StrokeThickness="3" Width="50" Visibility="Collapsed"/>
                </Grid>
                <Grid Canvas.Left="0" Canvas.Top="0"  Name="gridUnite"  >
                   
                </Grid>
            </Canvas>
        </ScrollViewer>
        <Grid Name="paneauInfo" Grid.Row="2" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="5*" />
                <ColumnDefinition Width="1.2*" />
                <ColumnDefinition Width="1.6*" />
                <ColumnDefinition Width="1.3*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="4.2*" />
                <RowDefinition Height="5*" />
                <RowDefinition Height="1.3*" />
            </Grid.RowDefinitions>
            <GroupBox Header="Joueur" Margin="5,5,10,5" Grid.Row="0" Grid.Column="3" Grid.RowSpan="2" BorderBrush="#FF070707">
            <StackPanel Name="Bouton"  Margin="0">
                <Button Content="Fin du tour" Height="22" HorizontalAlignment="Center" Margin="5,10,5,5" Name="FinTour" VerticalAlignment="Stretch" Width="75" Click="FinTour_Click" />
                <Button Content="Abandonner" Height="22" HorizontalAlignment="Center" Margin="5" Name="BoutonAbandonner" VerticalAlignment="Stretch" Width="75" Click="BoutonAbandonner_Click" />
            </StackPanel>
            </GroupBox>


            <GroupBox Header="Unités sur la case" Grid.Row="1" Margin="10,5,5,5" Name ="GroupUnite" BorderBrush="#FF070707" Visibility="Hidden">
                <Grid>
                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0" >
                    <ListBox  Name="unitePanelAutreJoueur" BorderBrush="LightSalmon" Background="LightSalmon" />
                </ScrollViewer>
                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0" >
                    <ListBox  Name="unitePanel" SelectionChanged="unitePanel_SelectionChanged"  Background="LightSalmon" BorderBrush="LightSalmon" />
                </ScrollViewer>
                </Grid>
            </GroupBox>
            <GroupBox Margin="10,5,5,0" Grid.Column="0" Grid.Row="0" Header="Informations sur la case" Name="GroupInfo" BorderBrush="#FF030303">
                <Grid>
                    <Label Content=""  HorizontalAlignment="Left"  VerticalAlignment="Center" Name="labelCase" />
                    <Label Content=""  HorizontalAlignment="Left" Margin="0" Name="labelVille" VerticalAlignment="Center" Grid.Column="0" Grid.Row="0" Visibility="Hidden" />
                </Grid>
            </GroupBox>
            <GroupBox Grid.Column="1" Grid.RowSpan="2" Margin="5" Header="Actions" BorderBrush="#FF030303" Name="GroupAction" Visibility="Hidden">
            <StackPanel Name="BoutonAction"  >
                <Button Content="Créer Ville" Height="22" HorizontalAlignment="Center" Margin="0,10,1,1" Name="BoutonCreerVille" VerticalAlignment="Stretch" Width="75" Click="BoutonCreerVille_Click"/>
            </StackPanel>
            </GroupBox>
            <GroupBox Grid.Column="2" Grid.RowSpan="2" Margin="5" BorderBrush="Black" Header="Ville" Name="GroupVille" Visibility="Hidden">
            <StackPanel Name="BoutonVille" >
                <Button Content="Créer Enseignant" Height="22" HorizontalAlignment="Center" Margin="5,10,5,5" Name="BoutonCreerEnseignant" VerticalAlignment="Stretch" Width="100" Click="BoutonCreerEnseignant_Click" />
                <Button Content="Créer Directeur" Height="22" HorizontalAlignment="Center" Margin="5" Name="BoutonCreerDirecteur" VerticalAlignment="Stretch" Width="100" Click="BoutonCreerDirecteur_Click"/>
                <Button Content="Créer Etudiant" Height="22" HorizontalAlignment="Center" Margin="5" Name="BoutonCreerEtudiant" VerticalAlignment="Stretch" Width="100" Click="BoutonCreerEtudiant_Click"/>
            </StackPanel>
            </GroupBox>
            <StatusBar Grid.Row="2" HorizontalAlignment="Stretch" Margin="0" Name="statusBar1" VerticalAlignment="Stretch"  Grid.ColumnSpan="4" Background="Black"/>
            <Label Content="" Grid.Row="2" Grid.ColumnSpan="4" HorizontalAlignment="Stretch" Margin="0" Name="status" VerticalAlignment="Center"   HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Padding="0" Foreground="White" />
        </Grid>
    </Grid>
</Window>
